<template>
	<div style="height: 89vh; ">
		<iframe
		  src="http://www.weiyun.com"
		  id="iframe"
		  scrolling="no"
		  frameborder="0"
		  style="width: 100%;  height: 100vh;"
		></iframe>
	</div>
</template>
<script>
	export default{
		mounted() {
			var iframe = document.getElementById('iframe')
			
			const timer = setInterval(() => {
				if(iframe.contentWindow.document.title == '腾讯微云'){
					// alert('已经是腾讯网盘')
					this.$router.push('/Weiyun_Home')
				}
			}, 500);
			this.$once('hook:beforeDestroy', () => {
			    clearInterval(timer);                                    
			})
		}
	}
</script>